﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Orchard.Data;
using Autofac;
using Orchard.Entity;
using System.Data.Entity;
using Autofac.Integration.Mvc;
using System.Web.Mvc;
using VLogs;

namespace Orchard.Service
{
    /// <summary>
    /// 业务层一些公用的属性和方法
    /// </summary>
    public class ServiceBase
    {

        public ServiceBase()
        {
            //var builder = new ContainerBuilder();
            //builder.RegisterGeneric(typeof(Repository<>)).As(typeof(IRepository<>)).InstancePerDependency();
            //builder.RegisterType<EEE114Entities>().As<DbContext>().InstancePerDependency();
            //IContainer container = builder.Build();
            //DependencyResolver.SetResolver(new AutofacDependencyResolver(container));
        }


    }
}
